package exception;

/**
 * 自定义异常
 * 通常在项目中需要描述一个语法正确但不符合业务需求的错误时,可以自定义异常
 * 自定义异常应该满足如下要求:
 * 1.类名应该见名知意
 * 2.自定义异常类要继承自Exception
 *
 */
public class IllegalAgeException extends Exception{
    public IllegalAgeException() {
    }

    public IllegalAgeException(String message) {
        super(message);
    }

    public IllegalAgeException(String message, Throwable cause) {
        super(message, cause);
    }

    public IllegalAgeException(Throwable cause) {
        super(cause);
    }

    public IllegalAgeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
